// src\views\sendbox\publish-manage\Unpublished.jsx
// 待发布
import NewsPublish from '@/components/publish-manage/NewsPublish'
import usePublish from '@/components/publish-manage/usePublish'
import { Button } from 'antd';
import React from 'react'

export default function Unpublished() {
  //publishState=1表示待发布的
  const {dataSource,handlePublish}=usePublish(1);
  return (
    <div>
      <NewsPublish dataSource={dataSource} button={(id)=>{return <Button type='primary' onClick={()=>handlePublish(id)}>发布</Button>}}></NewsPublish>
    </div>
  )
}
